package com.hangxiang.approval.enums;


public enum ResultStatusEnum {


    SUCCESS(200,"操作成功！"),
    LOGIN(501,"账号密码错误！"),
    MANAGER(201,"已经在此部门！"),
    USER_INSERT(502,"当前手机号码已注册！"),
    FORBIDDEN(503,"当前账号已被禁用，请联系管理员！"),
    UPLOADFILE(504,"文件上传失败！"),
    DATA_ERR(505,"数据错误，请联系管理员！"),
    APPLY_STATE(506,"当前申请单已关闭！"),
    APPROVE_USER(507,"审批人信息错误！"),
    REPEAT_REVIEWER(508,"审核人重复！"),
    USER_DATA(509,"当前账号未注册，请联系管理员！"),
    TEMP_DATA_ERR(505,"当前模板没有设置审批流程，请联系管理员");


    private Integer code;

    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    ResultStatusEnum(Integer code, String message){
        this.code = code;
        this.message = message;
    }

}
